
global datapath "~/DataFolder"
global Analyses "~/Results"

************************************************************** Table 2: Baseline 
use "$datapath/RegData.dta", clear

global controls0 riskiness male avg_minority
global controls riskiness male avg_minority branch distance numsbl lretain size loan deposit p_ci p_re roa liquid

cd "$Analyses"

reghdfe num spec_above5pctemp , absorb(rssdhcr year fips) cluster(fips)
outreg2 using Table2.xls, replace label dec(3) drop(num) nor2 stats(coef se) addstat(Adjusted R-squared,e(r2_a)) addtext(Year FE, Yes, Bank FE, Yes, County FE, Yes, County*Year FE, No, Bank*State FE, No) 

reghdfe num spec_above5pctemp $controls0, absorb(rssdhcr year fips) cluster(fips)
outreg2 using Table2.xls, append label dec(3) drop(num) nor2 stats(coef se) addstat(Adjusted R-squared,e(r2_a)) addtext(Year FE, Yes, Bank FE, Yes, County FE, Yes, County*Year FE, No, Bank*State FE, No) 

reghdfe num spec_above5pctemp $controls, absorb(rssdhcr year fips) cluster(fips)
outreg2 using Table2.xls, append label dec(3) drop(num) nor2 stats(coef se) addstat(Adjusted R-squared,e(r2_a)) addtext(Year FE, Yes, Bank FE, Yes, County FE, Yes, County*Year FE, No, Bank*State FE, No) 

reghdfe num spec_above5pctemp $controls, absorb(county_year rssdhcr) cluster(fips)
outreg2 using Table2.xls, append label dec(3) drop(num) nor2 stats(coef se) addstat(Adjusted R-squared,e(r2_a)) addtext(Year FE, No, Bank FE, Yes, County FE, No, County*Year FE, Yes, Bank*State FE, No) 

reghdfe num spec_above5pctemp $controls, absorb(county_year bank_state) cluster(fips)
outreg2 using Table2.xls, append label dec(3) drop(num) nor2 stats(coef se) addstat(Adjusted R-squared,e(r2_a)) addtext(Year FE, No, Bank FE, No, County FE, No, County*Year FE, Yes, Bank*State FE, Yes) 

reghdfe volume spec_above5pctemp , absorb(rssdhcr year fips) cluster(fips)
outreg2 using  Table2.xls, append  label dec(3) drop(num) nor2 stats(coef se) addstat(Adjusted R-squared,e(r2_a)) addtext(Year FE, Yes, Bank FE, Yes, County FE, Yes, County*Year FE, No, Bank*State FE, No) 

reghdfe volume spec_above5pctemp $controls0, absorb(rssdhcr year fips) cluster(fips)
outreg2 using Table2.xls, append label dec(3) drop(num) nor2 stats(coef se) addstat(Adjusted R-squared,e(r2_a)) addtext(Year FE, Yes, Bank FE, Yes, County FE, Yes, County*Year FE, No, Bank*State FE, No) 

reghdfe volume spec_above5pctemp $controls, absorb(rssdhcr year fips) cluster(fips)
outreg2 using Table2.xls, append label dec(3) drop(num) nor2 stats(coef se) addstat(Adjusted R-squared,e(r2_a)) addtext(Year FE, Yes, Bank FE, Yes, County FE, Yes, County*Year FE, No, Bank*State FE, No) 

reghdfe volume spec_above5pctemp $controls, absorb(county_year rssdhcr) cluster(fips)
outreg2 using Table2.xls, append label dec(3) drop(num) nor2 stats(coef se) addstat(Adjusted R-squared,e(r2_a)) addtext(Year FE, No, Bank FE, Yes, County, No, County*Year FE, Yes, Bank*State FE, No) 

reghdfe volume spec_above5pctemp $controls, absorb(county_year bank_state) cluster(fips)
outreg2 using Table2.xls, append label dec(3) drop(num) nor2 stats(coef se) addstat(Adjusted R-squared,e(r2_a)) addtext(Year FE, No, Bank FE, No, County, No, County*Year FE, Yes, Bank*State FE, Yes) 


